{% extends "base.html"%}
{%block content%}
<h2>{{department}}</h2>
    {% for x,d in classes%}
        <span><b>{{d.subject}} {{d.coursen}} {{d.title}}</b></span>
        <div>
        {% if x  %}
                <span>{{x.Btime}}-{{x.Etime}} taught by {{x.instructor.name}}</span>
        {%else%}
            <em>There are no sections for this course at this time.</em>
        {% endif %}
        </div>
        <p>{{d.desc}}</p>
    {% endfor %}
{%endblock%}
